package com.bjsxt.datastructure.linetable;


/**
 * 线性表接口
 * 和存储结构无关
 */
public interface List {
    public int size();

    public Object get(int i);

    public boolean isEmpty();

    public boolean contains(Object e);

    public int indexOf(Object e);

    public void add(int i, Object e);

    public void add(Object e);

    public boolean addBefore(Object obj, Object e);

    public boolean addAfter(Object obj, Object e);

    public void remove(int i);

    public boolean remove(Object e);

    public Object replace(int i, Object e);

}
